﻿<UserControl x:Class="ModernUILogViewer.Content.ContentLoadLog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             DataContext="{Binding Source={StaticResource mainVM}, Path=TailLogVM}"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="500">
    <Grid Style="{StaticResource ContentRoot}">
        <StackPanel MinWidth="100">
            <TextBlock Text="LOG FILE LOCATION" Style="{StaticResource Heading2}" Margin="{StaticResource DefaultTopMargin}" />
            <TextBlock Margin="{StaticResource DefaultTopMargin}">
                Enter a local or remote file accessible by http protocol
            </TextBlock>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80*"></ColumnDefinition>
                    <ColumnDefinition Width="20*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBox
                    Grid.Column="0"                    
                    IsReadOnly="False"                
                    Margin="{StaticResource DefaultTopMargin}"                 
                    Text="{Binding Filename, Mode=OneWay}"                
                />
                <Button Content="Browse.." Grid.Column="1" Command="{Binding OpenFileCommand}" />
            </Grid>              
        </StackPanel>        
    </Grid>
</UserControl>
